var express = require("express");
var router = express.Router();

/* GET home page. */
router.get("/api/list", function (req, res, next) {
  // 连接数据库，并且拿到数据
  const data = [
    {
      title: "陈建诚东芝在出席销售大会陈建诚东芝在出席销售大会",
      date: "2022-5-9",
    },
    {
      title: "陈建诚东",
      date: "2022-5-10",
    },
    {
      title: "陈建诚东芝在出席销售大会",
      date: "2022-5-11",
    },
    {
      title: "陈建诚东芝在出在出席销售大会",
      date: "2022-5-12",
    },
    {
      title:
        "陈建诚东芝在出席销售大会陈建诚东芝在出席销售大会诚东芝在出席销售大会陈建诚东芝在出席销售大会",
      date: "2022-5-13",
    },
    {
      title: "陈建诚东芝在出席销售大会陈建诚东芝在出席销售大会",
      date: "2022-5-14",
    },
  ];
  res.json({
    success: 1,
    result: data,
  });
});

module.exports = router;
